<#assign remarksSplit = table.remarks?split("\r\n") >
INSERT INTO `md_documents` (
`document_name`,
`identify`,
`book_id`,
`parent_id`,
`order_sort`,
`markdown`,
`release`,
`content`,
`create_time`,
`member_id`,
`modify_time`,
`modify_at`,
`version`
)
VALUES
(
'${remarksSplit[0]}(${sqlName})',
'',
'3',
'147',
'0',
'
#### ${remarksSplit[0]}(${sqlName})

<#list remarksSplit as name>
    <#if name_index !=0 >
        <#assign tempName= (name?replace("\r|\n","","i"))! >
        <#if (tempName)??>
<#if tempName?index_of("-") != -1>-</#if>${tempName}
        </#if>
    </#if>
</#list>

|参数名|类型|长度|说明|
|:-----  |:----- |:----- |:-----
<#list table.columns as column>
|${column.columnName} |${column.javaType} |${column.size} |${column.remarks?replace(";","")}|
</#list>

#### 备注：无

',
'

<h4 id="h4-name">
    <a name="${remarksSplit[0]}(${sqlName})" class="reference-link"></a>
    <span class="header-link octicon octicon-link"></span>${remarksSplit[0]}(${sqlName})
</h4>
<ul>
<#list remarksSplit as name><#if name_index != 0>
    <li>${(name?replace("\r|\n|-","","i"))!}</li>
</#if></#list>
</ul>
<table>
    <thead>
    <tr>
        <th style="text-align:left">参数名</th>
        <th style="text-align:left">类型</th>
        <th style="text-align:left">长度</th>
        <th style="text-align:left">说明</th>
    </tr>
    </thead>
    <tbody>
    <#list table.columns as column>
    <tr>
        <td style="text-align:left">${column.columnName}</td>
        <td style="text-align:left">${column.javaType}</td>
        <td style="text-align:left">${column.size}</td>
        <td style="text-align:left">${column.remarks?replace(";","")}</td>
    </tr>
    </#list>
    </tbody>
</table>
<h4 id="h4--">
    <a name="备注：无" class="reference-link"></a>
    <span class="header-link octicon octicon-link"></span>备注：无
</h4>


',
'

<h4 id="h4-name">
    <a name="${remarksSplit[0]}(${sqlName})" class="reference-link"></a>
    <span class="header-link octicon octicon-link"></span>${remarksSplit[0]}(${sqlName})
</h4>
<ul>
<#list remarksSplit as name><#if name_index != 0>
    <li>${(name?replace("\r|\n|-","","i"))!}</li>
</#if></#list>
</ul>
<table>
    <thead>
    <tr>
        <th style="text-align:left">参数名</th>
        <th style="text-align:left">类型</th>
        <th style="text-align:left">长度</th>
        <th style="text-align:left">说明</th>
    </tr>
    </thead>
    <tbody>
    <#list table.columns as column>
    <tr>
        <td style="text-align:left">${column.columnName}</td>
        <td style="text-align:left">${column.javaType}</td>
        <td style="text-align:left">${column.size}</td>
        <td style="text-align:left">${column.remarks?replace(";","")}</td>
    </tr>
    </#list>
    </tbody>
</table>
<h4 id="h4--">
    <a name="备注：无" class="reference-link"></a>
    <span class="header-link octicon octicon-link"></span>备注：无
</h4>

',
DATE_FORMAT(NOW(),'%Y-%m-%d %H:%i:%S'),
'1',
DATE_FORMAT(NOW(),'%Y-%m-%d %H:%i:%S'),
'0',
UNIX_TIMESTAMP()
);



